<template>
  <div class="nodata" v-show="isShow">
    {{loading?'正在努力加载中~':'暂无数据~'}}
  </div>
</template>

<script>
export default {
  props: {
    length: {
      type: Number,
      default: 1,
    },
    loading:{
      type:Boolean,
      default:true,
    }
  },
  computed: {
    isShow() {
      return this.length == 0 ? true : false;
    },
  },
};
</script>

<style scoped>
.nodata {
  text-align: center;
  padding-top: 30px;
  font-size: 14px;
  color: #8a8f99;
}
</style>
